<{include file="admin/head.html"}>
<link rel="stylesheet" href="<{$smarty.const.__URL__}>plugins/tablecloth/tablecloth.css">
<body>
	<{include file="admin/nav.html"}>
	<div id="content">
		<div id="sidebar">
			<ul>
				<li><a href="advertise.php?do=addBanner">添加广告大图</a></li>
				<li><a href="advertise.php?do=banners">查看广告大图</a></li>
				<li><a href="advertise.php?do=addProduct">添加产品列表</a></li>
				<li><a href="advertise.php?do=product">查看产品列表</a></li>
				<li><a href="advertise.php?do=addFeatured">添加精选产品</a></li>
				<li><a href="advertise.php?do=featured">查看精选产品</a></li>
			</ul>
		</div>
		<div id="main">
			<h2 id="page_title"><{$pageTitle}></h2>
				<{if $list}>
				<table>
					<tr>
						<th>图片</th>
						<th>描述</th>
						<th>链接</th>
						<th>显示顺序</th>
						<th>操作</th>
					</tr>
					<{foreach from=$list item=l}>
					<tr>
						<td>
							<a href="<{$smarty.const.UPLOAD_URL}>advertise/<{$l.file}>" class="hasLightbox">
								<img src="<{$smarty.const.UPLOAD_URL}>advertise/<{$l.file}>" style="height: 60px; width:138px;">
							</a>	
						</td>
						<td><{$l.title}></td>
						<td>
							<{if $l.link}><a href="<{$l.link}>" target="_blank">跳转</a>	<{/if}>
						</td>
						<td><{$l.order}></td>
						<td>
							<a href="javascript:;" class="ln_del" data="{'url':'advertise.php?do=delAdv&id=<{$l.id}>','to':'advertise.php?do=banners'}">删除</a>
							<a href="advertise.php?do=editAdv&id=<{$l.id}>">修改</a>
							<a href="<{$smarty.const.UPLOAD_URL}>advertise/<{$l.file}>" class="hasLightbox">查看</a>
						</td>
					</tr>
					<{/foreach}>
				</table>
				<{else}>
					<div class="no_data">暂无数据</div>
				<{/if}>
		</div>
	</div>
	<script type="text/javascript" src="<{$smarty.const.__URL__}>plugins/tablecloth/tablecloth.js"></script>
	<{include file="admin/hasLightbox.html"}>
</body>
</html>